// com.huitongmaoyi.ai.entity.DemandCriteria.java
package com.huitongmaoyi.ai.entity;

public class DemandCriteria {
    private String country;          // 国家代码（如 DE）
    private String industry;         // 行业（如 Lights）
    private Double minAnnualOrder;   // 最小年订单额（万美元）
    private Double maxAnnualOrder;   // 最大年订单额
    private String creditRating;     // 信用等级 A/B/C/D
    private Integer maxRiskLevel;    // 最大可接受风险等级（1-5）

    // Getters & Setters
    public String getCountry() { return country; }
    public void setCountry(String country) { this.country = country; }
    public String getIndustry() { return industry; }
    public void setIndustry(String industry) { this.industry = industry; }
    public Double getMinAnnualOrder() { return minAnnualOrder; }
    public void setMinAnnualOrder(Double minAnnualOrder) { this.minAnnualOrder = minAnnualOrder; }
    public Double getMaxAnnualOrder() { return maxAnnualOrder; }
    public void setMaxAnnualOrder(Double maxAnnualOrder) { this.maxAnnualOrder = maxAnnualOrder; }
    public String getCreditRating() { return creditRating; }
    public void setCreditRating(String creditRating) { this.creditRating = creditRating; }
    public Integer getMaxRiskLevel() { return maxRiskLevel; }
    public void setMaxRiskLevel(Integer maxRiskLevel) { this.maxRiskLevel = maxRiskLevel; }

    public boolean isComplete() {
        return country != null && industry != null;
    }

    @Override
    public String toString() {
        return "DemandCriteria{" +
                "country='" + country + '\'' +
                ", industry='" + industry + '\'' +
                ", minAnnualOrder=" + minAnnualOrder +
                ", maxAnnualOrder=" + maxAnnualOrder +
                ", creditRating='" + creditRating + '\'' +
                ", maxRiskLevel=" + maxRiskLevel +
                '}';
    }
}